<template>
    <view class="payment-wrap">
        <view class="payment-header">
            <text class="icon iconfont icon-zhifuchenggong"></text>
            <text class="txt">您的订单支付成功!</text>
        </view>
        <view class="payment-footer">
            <view class="order-btn" @click="goto('/pagesOrder/order_list/index?status=0')">我的订单</view>
            <view class="order-btn primary" @click="goto('/pagesOrder/order_detail/index?oid='+query.oid)">查看订单</view>
        </view>
    </view>
</template>

<script setup lang="ts">
// 获取页面参数
const query = defineProps({
    "oid": {
        type: String,
        default: '0'
    }
})

const goto = (url:any) => {
    uni.navigateTo({url})
}
</script>

<style lang="scss">
.payment-wrap {
    .payment-header {
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-top: 200rpx;
        .icon {
            font-size: 200rpx;
            color: #27BA9B;
        }
        .txt {
            margin-top: 20rpx;
            color: #27BA9B;
            font-size: 30rpx;
        }
    }
    .payment-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 200rpx;
        .order-btn {
            text-align: center;
            border: 2rpx solid #CD0011;
            padding: 14rpx 0;
            background-color: #fff;
            width: 30%;
            border-radius: 50rpx;
            &:first-child {
                margin-right: 30rpx;
            }
            color: #CD0011;
        }
        .primary {
            background-color: #CD0011;
            color: #fff;
        }
    }
}
</style>